﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div class="box">
    <h2 id="title-createmetafield">Create Meta Field</h2>
        
    <% using (Html.BeginForm("CreateMetaField", "Admin", FormMethod.Post, new { @class = "standardform" }))
    { %>
        
    <div class="boxcontent">
        <table>
            <tr>
                <td style="width: 140px;">Name</td>
                <td style="width: 200px;"><%= Html.TextBox("metafieldname", "", new { @class = "fullwidth" }) %></td>
                <td class="hint"></td>
            </tr>
            
            <tr>
                <td>Data Type</td>
                <td><%= Html.DropDownList("metafielddatatype", UIHelper.GetMetaFieldDataTypes(), new { @class = "fullwidth" })%></td>
                <td class="hint"></td>
            </tr>
            
            <tr>
                <td>Default Value</td>
                <td><%= Html.TextBox("metafielddefaultvalue", "", new { @class = "fullwidth" }) %></td>
                <td class="hint"></td>
            </tr>
            
            <tr>
                <td>View Path</td>
                <td><%= Html.TextBox("metafieldviewpath", "~/views/", new { @class = "fullwidth" }) %></td>
                <td class="hint"></td>
            </tr>
        </table>
    </div>
        
    <div class="boxfooter">
        <input type="submit" value="Create" id="button-createmetafield" />
    </div>
        
    <%} %>
</div>
